# 销毁
execute as @e[tag=UI-gamerule_control,tag=!UI-gamerule_control.main] at @s run function dab:system/ui/gamerules/remove_by_no_owner with entity @s Passengers[{Tags:["util.entity_owner.marker"]}].data

# 规则修改
execute as @e[tag=UI-gamerule_control.ctr,type=item_display] at @s if data entity @n[tag=UI-gamerule_control.ctr.IA,type=interaction,distance=..1] interaction run function dab:system/ui/gamerules/change_gamerule with entity @s Passengers[{Tags:["UI-gamerule_control.ctr.DM"]}].data

# 点击下一页
execute as @e[tag=UI-gamerule_control.NP_button,type=item_display] at @s if data entity @n[tag=UI-gamerule_control.NP_button_I,distance=..1] interaction run function dab:system/ui/gamerules/ui_next_page with entity @s Passengers[{Tags:["util.entity_owner.marker"]}].data

# 点击上一页
execute as @e[tag=UI-gamerule_control.PP_button,type=item_display] at @s if data entity @n[tag=UI-gamerule_control.PP_button_I,distance=..1] interaction run function dab:system/ui/gamerules/ui_previous_page with entity @s Passengers[{Tags:["util.entity_owner.marker"]}].data

#旋转
execute as @e[tag=UI-gamerule_control.ctr,type=item_display] at @s run tp @s ~ ~ ~ ~5 ~